﻿using System;
using System.Data;
using ExtendedConsole;

namespace ProjectMain
{

    public class ClassGetUserInfo
    {

        public static void getUserInfo(out string username, out string password)
        {
            string password1;
            do
            {

                do
                {
                    System.Console.Write("Enter User Name: \t");
                    username = Console.ReadLine();
                    Console.WriteLine();

                } while (username == "");


                System.Console.Write("Enter Password: \t");
                password = PwdMaskClass.PasswdMask();


                System.Console.Write("Reenter Password: \t");
                password1 = PwdMaskClass.PasswdMask();

                if (password == password1)
                    break;
                else
                    Console.Write("\n\n PassWord do not match, Try Again !");

            } while (password != password1);

            // Check if password1 = password2

           


        }
    }
}

